package what.basic.textcomponent;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.event.*;
public class Jeditorpaneplain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String str=new String("sseen\nx00003\nxlldlssd\n");
		JEditorPane jep=new JEditorPane("text/plain",str);
		jep.setEditable(true);
		JFrame f=new JFrame("jeditorpane text/plain");
		f.setContentPane(new JScrollPane(jep));
		f.pack();
		f.setVisible(true);
		f.addWindowListener(new WindowAdapter(){
			public void windowClosing(WindowEvent e){
				System.exit(0);
			}
		});

	}

}
